//目录的创建3
import java.io.File;
import java.io.IOException;
public class Demo7 {
    public static void main(String[] args) throws IOException{
        File dir = new File("some-parent\\some-dir");
        System.out.println(dir.isDirectory());
        System.out.println(dir.isFile());
        System.out.println(dir.mkdirs());
        System.out.println(dir.isDirectory());
        System.out.println(dir.isFile());
    }
}
